package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClearMapper;
import com.ruoyi.system.domain.Clear;
import com.ruoyi.system.service.IClearService;
import com.ruoyi.common.core.text.Convert;

/**
 * 门店清运 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
@Service
public class ClearServiceImpl implements IClearService 
{
	@Autowired
	private ClearMapper clearMapper;

	/**
     * 查询门店清运信息
     * 
     * @param id 门店清运ID
     * @return 门店清运信息
     */
    @Override
	public Clear selectClearById(Long id)
	{
	    return clearMapper.selectClearById(id);
	}
	
	/**
     * 查询门店清运列表
     * 
     * @param clear 门店清运信息
     * @return 门店清运集合
     */
	@Override
	public List<Clear> selectClearList(Clear clear)
	{
	    return clearMapper.selectClearList(clear);
	}
	
    /**
     * 新增门店清运
     * 
     * @param clear 门店清运信息
     * @return 结果
     */
	@Override
	public int insertClear(Clear clear)
	{
	    return clearMapper.insertClear(clear);
	}
	
	/**
     * 修改门店清运
     * 
     * @param clear 门店清运信息
     * @return 结果
     */
	@Override
	public int updateClear(Clear clear)
	{
	    return clearMapper.updateClear(clear);
	}

	/**
     * 删除门店清运对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteClearByIds(String ids)
	{
		return clearMapper.deleteClearByIds(Convert.toStrArray(ids));
	}
	
}
